package com.zhanghang.vending_machine.service;

import com.zhanghang.vending_machine.domain.po.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author ASUS
* @description 针对表【shopping_cart】的数据库操作Service
* @createDate 2024-11-06 14:06:29
*/
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 添加购物车
     * @param goodId
     * @param number
     */
    void addShoppingCart(Long goodId, Integer number);

    /**
     * 删除购物车内商品
     * @param goodId
     */
    void subByGoodId(Long goodId);

    /**
     * 清空购物车
     */
    void sub();
}
